import { defineStore } from "pinia";

interface IDataInfo {
  name: string;
}
export const useShortStore = defineStore("shortdata", {
  state: () => {
    return {
      data: {} as IDataInfo,
    };
  },
  actions: {
    updateVal(val: IDataInfo) {
      this.data = val;
    },
  },
});
export default useShortStore;
